#define _CRT_SECURE_NO_WARNINGS
#include"SeqList.h"
void test1()
{
	SL a;
	SeqListInit(&a);
	SeqListPushBack(&a, 2);
	SeqListPushBack(&a, 1);
	SeqListPushBack(&a, 2);
	SeqListPushBack(&a, 2);
	SeqListPushBack(&a, 5);
	SeqListDisplay(&a);
}
void test2()
{
	SL b;
	int ret = 0;
	SeqListInit(&b);
	SeqListPushBack(&b, 2);
	SeqListPushBack(&b, 4);
	SeqListPushBack(&b, 5);
	SeqListPushBack(&b, 7);
	SeqListPushBack(&b, 100);
	SeqListPushBack(&b, 200);
	SeqListPushBack(&b, 300);
	SeqListPushBack(&b, 400);
	SeqListDisplay(&b);
	SeqListPopFront(&b);
	SeqListPopFront(&b);
	SeqListPopFront(&b);
	SeqListInsert(&b, 0, 111);
	SeqListInsert(&b, 0, 111);
	SeqListInsert(&b, 0, 111);
	SeqListInsert(&b, 0, 111);
	SeqListInsert(&b, 0, 111);
	SeqListDisplay(&b);
	ret = SeqListSearch(&b, 100);
	SeqListEreas(&b, ret);
	SeqListDisplay(&b);
	printf("%d", ret);
	SeqListDestory(&b);
}
int main()
{
	//test1();
	test2();
	return 0;
}